package com.lichuang.fruitvarietysm.user.controller;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lichuang.fruitvarietysm.user.entity.SecurityQuestionList;
import com.lichuang.fruitvarietysm.user.mapper.SecurityQuestionListMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 密保问题列表 前端控制器
 * </p>
 *
 * @author shuaihang
 * @since 2019-06-06
 */
@RestController
@RequestMapping("//security-question-list")
public class SecurityQuestionListController {

    @Autowired
    private SecurityQuestionListMapper securityQuestionListMapper;

    public List<SecurityQuestionList> showSecurityQuestionList(){
        List<SecurityQuestionList> questionLists = securityQuestionListMapper.selectList(new QueryWrapper<>());
        return questionLists;
    }
}